package com.zjol

/**
  * Created by Administrator on 2017/3/27.
  */
trait Logger {

  def  log(msg:String)

}

trait  TraitLog extends  Logger{
  override def log(msg: String) = println(" TraitLooger :"+msg)
}


class  ConcreteLogger  {
  //override def log(msg: String): Unit = println("Log: "+msg)
}


object Log{
  def main(args: Array[String]): Unit = {
     val log:Logger=new ConcreteLogger() with TraitLog
    log.log("zhaochoa ")

  }
}